package com.atguigu.fruit.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.atguigu.fruit.pojo.Fruit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Administrator
* @description 针对表【t_fruit】的数据库操作Mapper
* @createDate 2022-04-29 17:48:51
* @Entity com.atguigu.fruit.pojo.Fruit
*/

@Mapper
public interface FruitMapper extends BaseMapper<Fruit> {

    //增加
    int insertSelective(Fruit fruit);

    //修改

    int updateSelectiveById(Fruit fruit);


    //删除
    boolean deleteByFid(@Param("fid") Integer fid);

    //按id查询

    List<Fruit> selectByFid(@Param("fid") Integer fid);

    //查询全部

    List<Fruit> searchAll();

}




